#ifndef REGISTER_H
#define REGISTER_H

#include <QDialog>
#include "ui_register.h"
#include<QMessageBox>
#include "CaesarCipher.h"

//避免头文件互相引用导致循环引用，所以用前向声明
class Dialog;

namespace Ui {
class Register;
}

class Register : public QDialog
{
    Q_OBJECT

public:
    explicit Register(QWidget *parent = nullptr,Dialog* s=nullptr);
    ~Register();


private slots:
    void on_pushButton_clicked();

private:
    Ui::Register *ui;
private:
    //使用指针，结束时才释放
    Dialog* dialog;
    //单例Singleton模式
    CaesarCipher* caesarcipher=CaesarCipher::getInstance();
};

#endif // REGISTER_H
